import {
	apiResquest
} from '@/utils/Http.js'

// 创建订单
export const payCreate = params => {
	return apiResquest({
		url: '/a/adm/payOrder/add',
		method: 'post',
		data: params
	});
}
// 查询订单
export const selectPayOrder = params => {
	return apiResquest({
		url: '/a/adm/payOrder/select',
		method: 'post',
		data: params
	});
}
// 更新订单
export const payOrderUpdate = params => {
	return apiResquest({
		url: '/a/adm/payOrder/update',
		method: 'post',
		data: params
	});
}
export const payOrderUpdatePayStatus = params => {
	return apiResquest({
		url: '/a/adm/payOrder/payStatus',
		method: 'post',
		data: params
	});
}
// 退款
export const payOrderUpdateRefund = params => {
	return apiResquest({
		url: '/a/adm/payOrder/refund',
		method: 'post',
		data: params
	});
}
// 门诊已缴费订单退款
export const payOrderPatientRefund = params => {
	return apiResquest({
		url: '/a/adm/payOrder/patientRefund',
		method: 'post',
		data: params
	});
}